package cn.shentianlan.mapper;

import cn.shentianlan.criteria.ClassroomSchedulingCriteria;
import cn.shentianlan.domain.dto.ClassroomSchedulingDTO;
import cn.shentianlan.domain.entity.ClassroomScheduling;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author 陈俊源
 * @Description TODO
 * @Date 2021/5/6
 * @Version 1.0
 */
@Repository
public interface ClassroomSchedulingMapper {
    List<ClassroomSchedulingDTO> findClassroomSchedulingByCriteria(ClassroomSchedulingCriteria criteria);

    List<ClassroomSchedulingDTO> checkClassroomSchedulingByMap(Map<String,Object> args);

    Integer findCountByCriteria(ClassroomSchedulingCriteria criteria);

    void save(ClassroomSchedulingDTO classroomSchedulingDTO);

    void update(ClassroomSchedulingDTO classroomSchedulingDTO);

    ClassroomScheduling getClassroomSchedulingById(Long id);

    void deleteSchedulingById(Long id);

    ClassroomScheduling getClassrooomSchedulingByClassroomIdAndStartTimeAndEndTime(Map<String, Object> args);
}
